package train_array.day2;

import java.util.Scanner;

public class code3 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int len = sc.nextInt();
        int[] arr1 = new int[len];
        int[] arr2 = new int[len];
        for(int i=0;i<len;i++){
           arr1[i]=sc.nextInt();
        }
        for(int i=0;i<len;i++){
            arr2[i]=sc.nextInt();
        }

        int sum = 0;
        for(int i=0;i<len;i++){
            sum += Math.abs(Math.abs(arr1[i])-Math.abs(arr2[i]));
        }

        System.out.println(sum);

    }

}
